package com.kuang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 乱码测试
 */
@Controller
public class EncodingController {

    @RequestMapping("/a")
    public String Test1(){
        return "from";
    }

    @PostMapping("/t1")
    public String EncodingTest(String name, Model model){
        System.out.println(name);
        model.addAttribute("msg",name);
        return "test";
    }


}
